﻿using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using System;
using System.Data.SqlTypes;

namespace H2.NET.Web.Pages.SMD.Model
{
    [Table]
    [Serializable]
    public class t_smd_Store : DataObject
    {
        /// <summary>
        /// StoreID
        /// </summary>
        [ID]
        [Column]
        [IDENTITY]
        public int StoreID { get { return fSTOREID; } set { fSTOREID = value; EntityState.FieldChange("StoreID"); } }
        private int fSTOREID;
        public static FieldInfo _StoreID = new FieldInfo("t_smd_Store", "StoreID");

        /// <summary>
        /// AuthID
        /// </summary>
        [Column]
        [IDENTITY]
        public string AuthID { get { return fAUTHID; } set { fAUTHID = value; EntityState.FieldChange("AuthID"); } }
        private string fAUTHID;
        public static FieldInfo _AuthID = new FieldInfo("t_smd_Store", "AuthID");

        /// <summary>
        /// StoreName
        /// </summary>
        [Column]
        [IDENTITY]
        public string StoreName { get { return fSTORENAME; } set { fSTORENAME = value; EntityState.FieldChange("StoreName"); } }
        private string fSTORENAME;
        public static FieldInfo _StoreName = new FieldInfo("t_smd_Store", "StoreName");

        /// <summary>
        /// Channel
        /// </summary>
        [Column]
        [IDENTITY]
        public string Channel { get { return fCHANNEL; } set { fCHANNEL = value; EntityState.FieldChange("Channel"); } }
        private string fCHANNEL;
        public static FieldInfo _Channel = new FieldInfo("t_smd_Store", "Channel");

        /// <summary>
        /// StoreStatus
        /// </summary>
        [Column]
        [IDENTITY]
        public string StoreStatus { get { return fSTORESTATUS; } set { fSTORESTATUS = value; EntityState.FieldChange("StoreStatus"); } }
        private string fSTORESTATUS;
        public static FieldInfo _StoreStatus = new FieldInfo("t_smd_Store", "StoreStatus");

        /// <summary>
        /// StoreType
        /// </summary>
        [Column]
        [IDENTITY]
        public string StoreType { get { return fSTORETYPE; } set { fSTORETYPE = value; EntityState.FieldChange("StoreType"); } }
        private string fSTORETYPE;
        public static FieldInfo _StoreType = new FieldInfo("t_smd_Store", "StoreType");

        /// <summary>
        /// IsUpgraded
        /// </summary>
        [Column]
        [IDENTITY]
        public bool? IsUpgraded { get { return fISUPGRADED; } set { fISUPGRADED = value; EntityState.FieldChange("IsUpgraded"); } }
        private bool? fISUPGRADED;
        public static FieldInfo _IsUpgraded = new FieldInfo("t_smd_Store", "IsUpgraded");

        /// <summary>
        /// BeforeUpgradedType
        /// </summary>
        [Column]
        [IDENTITY]
        public string BeforeUpgradedType { get { return fBEFOREUPGRADEDTYPE; } set { fBEFOREUPGRADEDTYPE = value; EntityState.FieldChange("BeforeUpgradedType"); } }
        private string fBEFOREUPGRADEDTYPE;
        public static FieldInfo _BeforeUpgradedType = new FieldInfo("t_smd_Store", "BeforeUpgradedType");

        /// <summary>
        /// IsDowngraded
        /// </summary>
        [Column]
        [IDENTITY]
        public bool? IsDowngraded { get { return fISDOWNGRADED; } set { fISDOWNGRADED = value; EntityState.FieldChange("IsDowngraded"); } }
        private bool? fISDOWNGRADED;
        public static FieldInfo _IsDowngraded = new FieldInfo("t_smd_Store", "IsDowngraded");

        /// <summary>
        /// BeforeDowngradedType
        /// </summary>
        [Column]
        [IDENTITY]
        public string BeforeDowngradedType { get { return fBEFOREDOWNGRADEDTYPE; } set { fBEFOREDOWNGRADEDTYPE = value; EntityState.FieldChange("BeforeDowngradedType"); } }
        private string fBEFOREDOWNGRADEDTYPE;
        public static FieldInfo _BeforeDowngradedType = new FieldInfo("t_smd_Store", "BeforeDowngradedType");

        /// <summary>
        /// IsRenew
        /// </summary>
        [Column]
        [IDENTITY]
        public bool? IsRenew { get { return fISRENEW; } set { fISRENEW = value; EntityState.FieldChange("IsRenew"); } }
        private bool? fISRENEW;
        public static FieldInfo _IsRenew = new FieldInfo("t_smd_Store", "IsRenew");

        /// <summary>
        /// BeforeRenewType
        /// </summary>
        [Column]
        [IDENTITY]
        public string BeforeRenewType { get { return fBEFORERENEWTYPE; } set { fBEFORERENEWTYPE = value; EntityState.FieldChange("BeforeRenewType"); } }
        private string fBEFORERENEWTYPE;
        public static FieldInfo _BeforeRenewType = new FieldInfo("t_smd_Store", "BeforeRenewType");

        /// <summary>
        /// LastRenewDate
        /// </summary>
        [Column]
        [IDENTITY]
        public DateTime? LastRenewDate { get { return fLASTRENEWDATE; } set { fLASTRENEWDATE = value; EntityState.FieldChange("LastRenewDate"); } }
        private DateTime? fLASTRENEWDATE;
        public static FieldInfo _LastRenewDate = new FieldInfo("t_smd_Store", "LastRenewDate");

        /// <summary>
        /// FirstStartDate
        /// </summary>
        [Column]
        [IDENTITY]
        public DateTime? FirstStartDate { get { return fFIRSTSTARTDATE; } set { fFIRSTSTARTDATE = value; EntityState.FieldChange("FirstStartDate"); } }
        private DateTime? fFIRSTSTARTDATE;
        public static FieldInfo _FirstStartDate = new FieldInfo("t_smd_Store", "FirstStartDate");

        /// <summary>
        /// CurrentStartDate
        /// </summary>
        [Column]
        [IDENTITY]
        public DateTime? CurrentStartDate { get { return fCURRENTSTARTDATE; } set { fCURRENTSTARTDATE = value; EntityState.FieldChange("CurrentStartDate"); } }
        private DateTime? fCURRENTSTARTDATE;
        public static FieldInfo _CurrentStartDate = new FieldInfo("t_smd_Store", "CurrentStartDate");

        /// <summary>
        /// Region
        /// </summary>
        [Column]
        [IDENTITY]
        public string Region { get { return fREGION; } set { fREGION = value; EntityState.FieldChange("Region"); } }
        private string fREGION;
        public static FieldInfo _Region = new FieldInfo("t_smd_Store", "Region");

        /// <summary>
        /// Province
        /// </summary>
        [Column]
        [IDENTITY]
        public string Province { get { return fPROVINCE; } set { fPROVINCE = value; EntityState.FieldChange("Province"); } }
        private string fPROVINCE;
        public static FieldInfo _Province = new FieldInfo("t_smd_Store", "Province");

        /// <summary>
        /// CityName
        /// </summary>
        [Column]
        [IDENTITY]
        public string CityName { get { return fCITYNAME; } set { fCITYNAME = value; EntityState.FieldChange("CityName"); } }
        private string fCITYNAME;
        public static FieldInfo _CityName = new FieldInfo("t_smd_Store", "CityName");

        /// <summary>
        /// CityClass
        /// </summary>
        [Column]
        [IDENTITY]
        public string CityClass { get { return fCITYCLASS; } set { fCITYCLASS = value; EntityState.FieldChange("CityClass"); } }
        private string fCITYCLASS;
        public static FieldInfo _CityClass = new FieldInfo("t_smd_Store", "CityClass");

        /// <summary>
        /// StoreAddress
        /// </summary>
        [Column]
        [IDENTITY]
        public string StoreAddress { get { return fSTOREADDRESS; } set { fSTOREADDRESS = value; EntityState.FieldChange("StoreAddress"); } }
        private string fSTOREADDRESS;
        public static FieldInfo _StoreAddress = new FieldInfo("t_smd_Store", "StoreAddress");

        /// <summary>
        /// ContactPerson
        /// </summary>
        [Column]
        [IDENTITY]
        public string ContactPerson { get { return fCONTACTPERSON; } set { fCONTACTPERSON = value; EntityState.FieldChange("ContactPerson"); } }
        private string fCONTACTPERSON;
        public static FieldInfo _ContactPerson = new FieldInfo("t_smd_Store", "ContactPerson");

        /// <summary>
        /// PhoneNumber
        /// </summary>
        [Column]
        [IDENTITY]
        public string PhoneNumber { get { return fPHONENUMBER; } set { fPHONENUMBER = value; EntityState.FieldChange("PhoneNumber"); } }
        private string fPHONENUMBER;
        public static FieldInfo _PhoneNumber = new FieldInfo("t_smd_Store", "PhoneNumber");

        /// <summary>
        /// StoreSize
        /// </summary>
        [Column]
        [IDENTITY]
        public decimal? StoreSize { get { return fSTORESIZE; } set { fSTORESIZE = value; EntityState.FieldChange("StoreSize"); } }
        private decimal? fSTORESIZE;
        public static FieldInfo _StoreSize = new FieldInfo("t_smd_Store", "StoreSize");

        /// <summary>
        /// IsTintingService
        /// </summary>
        [Column]
        [IDENTITY]
        public bool? IsTintingService { get { return fISTINTINGSERVICE; } set { fISTINTINGSERVICE = value; EntityState.FieldChange("IsTintingService"); } }
        private bool? fISTINTINGSERVICE;
        public static FieldInfo _IsTintingService = new FieldInfo("t_smd_Store", "IsTintingService");

        /// <summary>
        /// IsColourService
        /// </summary>
        [Column]
        [IDENTITY]
        public bool? IsColourService { get { return fISCOLOURSERVICE; } set { fISCOLOURSERVICE = value; EntityState.FieldChange("IsColourService"); } }
        private bool? fISCOLOURSERVICE;
        public static FieldInfo _IsColourService = new FieldInfo("t_smd_Store", "IsColourService");

        /// <summary>
        /// CloseDate
        /// </summary>
        [Column]
        [IDENTITY]
        public DateTime? CloseDate { get { return fCLOSEDATE; } set { fCLOSEDATE = value; EntityState.FieldChange("CloseDate"); } }
        private DateTime? fCLOSEDATE;
        public static FieldInfo _CloseDate = new FieldInfo("t_smd_Store", "CloseDate");

        /// <summary>
        /// CloseReason
        /// </summary>
        [Column]
        [IDENTITY]
        public string CloseReason { get { return fCLOSEREASON; } set { fCLOSEREASON = value; EntityState.FieldChange("CloseReason"); } }
        private string fCLOSEREASON;
        public static FieldInfo _CloseReason = new FieldInfo("t_smd_Store", "CloseReason");

        /// <summary>
        /// CloseType
        /// </summary>
        [Column]
        [IDENTITY]
        public string CloseType { get { return fCLOSETYPE; } set { fCLOSETYPE = value; EntityState.FieldChange("CloseType"); } }
        private string fCLOSETYPE;
        public static FieldInfo _CloseType = new FieldInfo("t_smd_Store", "CloseType");

        /// <summary>
        /// ShowInWebsite
        /// </summary>
        [Column]
        [IDENTITY]
        public bool? ShowInWebsite { get { return fSHOWINWEBSITE; } set { fSHOWINWEBSITE = value; EntityState.FieldChange("ShowInWebsite"); } }
        private bool? fSHOWINWEBSITE;
        public static FieldInfo _ShowInWebsite = new FieldInfo("t_smd_Store", "ShowInWebsite");

        /// <summary>
        /// AccountCMS
        /// </summary>
        [Column]
        [IDENTITY]
        public string AccountCMS { get { return fACCOUNTCMS; } set { fACCOUNTCMS = value; EntityState.FieldChange("AccountCMS"); } }
        private string fACCOUNTCMS;
        public static FieldInfo _AccountCMS = new FieldInfo("t_smd_Store", "AccountCMS");

        /// <summary>
        /// StoreApprovedDate
        /// </summary>
        [Column]
        [IDENTITY]
        public DateTime? StoreApprovedDate { get { return fSTOREAPPROVEDDATE; } set { fSTOREAPPROVEDDATE = value; EntityState.FieldChange("StoreApprovedDate"); } }
        private DateTime? fSTOREAPPROVEDDATE;
        public static FieldInfo _StoreApprovedDate = new FieldInfo("t_smd_Store", "StoreApprovedDate");

        /// <summary>
        /// DeviceApprovedDate
        /// </summary>
        [Column]
        [IDENTITY]
        public DateTime? DeviceApprovedDate { get { return fDEVICEAPPROVEDDATE; } set { fDEVICEAPPROVEDDATE = value; EntityState.FieldChange("DeviceApprovedDate"); } }
        private DateTime? fDEVICEAPPROVEDDATE;
        public static FieldInfo _DeviceApprovedDate = new FieldInfo("t_smd_Store", "DeviceApprovedDate");

        /// <summary>
        /// EapproveSN
        /// </summary>
        [Column]
        [IDENTITY]
        public string EapproveSN { get { return fEAPPROVESN; } set { fEAPPROVESN = value; EntityState.FieldChange("EapproveSN"); } }
        private string fEAPPROVESN;
        public static FieldInfo _EapproveSN = new FieldInfo("t_smd_Store", "EapproveSN");

        /// <summary>
        /// MallName
        /// </summary>
        [Column]
        [IDENTITY]
        public string MallName { get { return fMALLNAME; } set { fMALLNAME = value; EntityState.FieldChange("MallName"); } }
        private string fMALLNAME;
        public static FieldInfo _MallName = new FieldInfo("t_smd_Store", "MallName");

        /// <summary>
        /// MallShortName
        /// </summary>
        [Column]
        [IDENTITY]
        public string MallShortName { get { return fMALLSHORTNAME; } set { fMALLSHORTNAME = value; EntityState.FieldChange("MallShortName"); } }
        private string fMALLSHORTNAME;
        public static FieldInfo _MallShortName = new FieldInfo("t_smd_Store", "MallShortName");

        /// <summary>
        /// ShopSeq
        /// </summary>
        [Column]
        [IDENTITY]
        public string ShopSeq { get { return fSHOPSEQ; } set { fSHOPSEQ = value; EntityState.FieldChange("ShopSeq"); } }
        private string fSHOPSEQ;
        public static FieldInfo _ShopSeq = new FieldInfo("t_smd_Store", "ShopSeq");

        /// <summary>
        /// HouseNumber
        /// </summary>
        [Column]
        [IDENTITY]
        public string HouseNumber { get { return fHOUSENUMBER; } set { fHOUSENUMBER = value; EntityState.FieldChange("HouseNumber"); } }
        private string fHOUSENUMBER;
        public static FieldInfo _HouseNumber = new FieldInfo("t_smd_Store", "HouseNumber");

        /// <summary>
        /// OpenBusinessDate
        /// </summary>
        [Column]
        [IDENTITY]
        public DateTime? OpenBusinessDate { get { return fOPENBUSINESSDATE; } set { fOPENBUSINESSDATE = value; EntityState.FieldChange("OpenBusinessDate"); } }
        private DateTime? fOPENBUSINESSDATE;
        public static FieldInfo _OpenBusinessDate = new FieldInfo("t_smd_Store", "OpenBusinessDate");

        /// <summary>
        /// NewFitment
        /// </summary>
        [Column]
        [IDENTITY]
        public string NewFitment { get { return fNEWFITMENT; } set { fNEWFITMENT = value; EntityState.FieldChange("NewFitment"); } }
        private string fNEWFITMENT;
        public static FieldInfo _NewFitment = new FieldInfo("t_smd_Store", "NewFitment");

        /// <summary>
        /// StoreReportStatus
        /// </summary>
        [Column]
        [IDENTITY]
        public string StoreReportStatus { get { return fSTOREREPORTSTATUS; } set { fSTOREREPORTSTATUS = value; EntityState.FieldChange("StoreReportStatus"); } }
        private string fSTOREREPORTSTATUS;
        public static FieldInfo _StoreReportStatus = new FieldInfo("t_smd_Store", "StoreReportStatus");

        /// <summary>
        /// Lon
        /// </summary>
        [Column]
        [IDENTITY]
        public decimal? Lon { get { return fLON; } set { fLON = value; EntityState.FieldChange("Lon"); } }
        private decimal? fLON;
        public static FieldInfo _Lon = new FieldInfo("t_smd_Store", "Lon");

        /// <summary>
        /// Lat
        /// </summary>
        [Column]
        [IDENTITY]
        public decimal? Lat { get { return fLAT; } set { fLAT = value; EntityState.FieldChange("Lat"); } }
        private decimal? fLAT;
        public static FieldInfo _Lat = new FieldInfo("t_smd_Store", "Lat");

        /// <summary>
        /// District
        /// </summary>
        [Column]
        [IDENTITY]
        public string District { get { return fDISTRICT; } set { fDISTRICT = value; EntityState.FieldChange("District"); } }
        private string fDISTRICT;
        public static FieldInfo _District = new FieldInfo("t_smd_Store", "District");

        /// <summary>
        /// AccountOwner
        /// </summary>
        [Column]
        [IDENTITY]
        public string AccountOwner { get { return fACCOUNTOWNER; } set { fACCOUNTOWNER = value; EntityState.FieldChange("AccountOwner"); } }
        private string fACCOUNTOWNER;
        public static FieldInfo _AccountOwner = new FieldInfo("t_smd_Store", "AccountOwner");

        /// <summary>
        /// WechatId
        /// </summary>
        [Column]
        [IDENTITY]
        public string WechatId { get { return fWECHATID; } set { fWECHATID = value; EntityState.FieldChange("WechatId"); } }
        private string fWECHATID;
        public static FieldInfo _WechatId = new FieldInfo("t_smd_Store", "WechatId");

        /// <summary>
        /// BMCCode
        /// </summary>
        [Column]
        [IDENTITY]
        public string BMCCode { get { return fBMCCODE; } set { fBMCCODE = value; EntityState.FieldChange("BMCCode"); } }
        private string fBMCCODE;
        public static FieldInfo _BMCCode = new FieldInfo("t_smd_Store", "BMCCode");

        /// <summary>
        /// BMCName
        /// </summary>
        [Column]
        [IDENTITY]
        public string BMCName { get { return fBMCNAME; } set { fBMCNAME = value; EntityState.FieldChange("BMCName"); } }
        private string fBMCNAME;
        public static FieldInfo _BMCName = new FieldInfo("t_smd_Store", "BMCName");

        /// <summary>
        /// DealerID
        /// </summary>
        [Column]
        [IDENTITY]
        public int? DealerID { get { return fDEALERID; } set { fDEALERID = value; EntityState.FieldChange("DealerID"); } }
        private int? fDEALERID;
        public static FieldInfo _DealerID = new FieldInfo("t_smd_Store", "DealerID");

        ///// <summary>
        ///// SubDealerId
        ///// </summary>
        //[Column]
        //[IDENTITY]
        //public int? SubDealerId { get { return fSUBDEALERID; } set { fSUBDEALERID = value; EntityState.FieldChange("SubDealerId"); } }
        //private int? fSUBDEALERID;
        //public static FieldInfo _SubDealerId = new FieldInfo("t_smd_Store", "SubDealerId");

        /// <summary>
        /// SubDealerCode
        /// </summary>
        [Column]
        [IDENTITY]
        public string SubDealerCode { get { return fSUBDEALERCODE; } set { fSUBDEALERCODE = value; EntityState.FieldChange("SubDealerCode"); } }
        private string fSUBDEALERCODE;
        public static FieldInfo _SubDealerCode = new FieldInfo("t_smd_Store", "SubDealerCode");

        /// <summary>
        /// SubDealerName
        /// </summary>
        [Column]
        [IDENTITY]
        public string SubDealerName { get { return fSUBDEALERNAME; } set { fSUBDEALERNAME = value; EntityState.FieldChange("SubDealerName"); } }
        private string fSUBDEALERNAME;
        public static FieldInfo _SubDealerName = new FieldInfo("t_smd_Store", "SubDealerName");
        //Chris Wang DealerShortName的新增
        /// <summary>
        /// DealerShortName
        /// </summary>
        [Column]
        [IDENTITY]
        public string DealerShortName { get { return fDEALERSHORTNAME; } set { fDEALERSHORTNAME = value; EntityState.FieldChange("DealerShortName"); } }
        private string fDEALERSHORTNAME;
        public static FieldInfo _DealerShortName = new FieldInfo("t_smd_Store", "DealerShortName");
    }
}